@import './components/index.less';
@import '~antd/dist/antd.variable.less';

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: '微软雅黑', 'Microsoft YaHei';
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
    box-sizing: border-box;
    background-color: #fff;
    color: var(--dm-font-color-555);
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
i {
    font-style: normal;
}

:root {
    // 页面中间区域最小高度
    --min-content-height: 440px;
}

.ant-back-top {
    >.ant-back-top-content {
        background-color: var(--ant-primary-color-outline);
        &:hover {
            background-color: var(--ant-primary-color-hover);
        }
        
    }
}

.dm_App {
    width: 100%;
    .common_width {
        width: 1100px;
        margin: 0 auto;
    }

    // 一行展示 - 溢出显示省略号
    .single_line_ellipsis {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-break: break-all;
    }

    // 两行展示 - 溢出显示省略号
    .two_line_ellipsis {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        text-overflow: ellipsis;
        overflow: hidden;
        word-break: break-all;
    }


    // Table操作栏 - 按钮样式
    .operation-btn {
        >span, >a {
            color: var(--ant-primary-color);
            cursor: pointer;
            &:not(:last-child) {
                margin-right: 10px;
            }

            &:hover {
                text-decoration: underline;
            }
        }
    }
    
    // icon font
    .icon-font {
      width: 1em;
      height: 1em;
      vertical-align: -0.15em;
      fill: var(--ant-primary-color);
      overflow: hidden;
    }
}

.ant-input[disabled] {
    color: inherit;
    cursor: text;
}

.ant-select-disabled.ant-select{
    &:not(.ant-select-customize-input) {
        .ant-select-selector {
            color: inherit;
            cursor: text;
        }
    }
}

.ant-tooltip {
    >.ant-tooltip-content {
        >.ant-tooltip-inner {
            font-size: 13px;
            word-break: break-all;
        }
    }
}

.ant-input-number-disabled {
    color: inherit;
    cursor: text;
}